package com.lovely602.ai.alibaba.tools;


import java.util.function.Function;

/**
 * 招聘服务功能
 * @author lizhixing
 */
public class RecruitServiceFunction implements Function<RecruitServiceFunction.Request, RecruitServiceFunction.Response> {
    @Override
    public Response apply(Request request) {
        String position = "未知";
        if (request.name.contains("张三")) {
            position = "算法工程师";
        }
        return new Response(position);
    }

    public record Request(String name) {
    }

    public record Response(String position) {
    }
}
